import Vue from "vue";
import VueRouter from "vue-router";
import Shopping from "../views/ShoppingCart.vue"
import HelloWorld from "../views/SearchShop.vue"
import RegBusiness from "../views/RegBusiness.vue"
import HomeView from "../views/HomeView.vue"
import SearchShop from "../views/SearchShop.vue"
import Details from "../views/Details.vue"
import UserCenter from "../views/UserCenter.vue"
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView
  },
  {
    path: "/shopping",
    name: "shopping",
    component:Shopping
  },
  {
    path:"/hello",
    component:HelloWorld
  },
  {
    path:"/regbusiness",
    component:RegBusiness
  },
  {
    path:"/search",
    component:SearchShop
  },
  {
    path:"/details",
    component:Details
  },
  {
    path:"/userCenter",
    component:UserCenter
  }
];

const router = new VueRouter({
  routes
});

export default router;
